public class demo13 {
    public static void main(String[] args) {
        System.out.println(Fn(20));
    }
    public static int Fn(int n){
        if(n == 1){
            return 1;
        }
        return Fn(n-1)+4*(n-1);
    }
}
